

const { resolve } = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');

module.exports = {

    entry: './src/index.js',

    output: {
        filename: 'junjie.js',
        path: resolve(__dirname,'build')
    },

    module: {
        rules: [

        ]
    },

    plugins: [
        new HtmlWebpackPlugin({
            template: './src/index.html'
        })

    ],

    mode: 'development'
}